


using System;
using SubSonic.Schema;
using System.Collections.Generic;
using SubSonic.DataProviders;
using System.Data;

namespace xtra.domain.Subsonic3 {
	
        /// <summary>
        /// Table: aspnet_Paths
        /// Primary Key: PathId
        /// </summary>

        public class aspnet_PathsTable: DatabaseTable {
            
            public aspnet_PathsTable(IDataProvider provider):base("aspnet_Paths",provider){
                ClassName = "aspnet_Path";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("ApplicationId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("PathId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Path", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("LoweredPath", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });
                    
                
                
            }
            
            public IColumn ApplicationId{
                get{
                    return this.GetColumn("ApplicationId");
                }
            }
            				
   			public static string ApplicationIdColumn{
			      get{
        			return "ApplicationId";
      			}
		    }
           
            public IColumn PathId{
                get{
                    return this.GetColumn("PathId");
                }
            }
            				
   			public static string PathIdColumn{
			      get{
        			return "PathId";
      			}
		    }
           
            public IColumn Path{
                get{
                    return this.GetColumn("Path");
                }
            }
            				
   			public static string PathColumn{
			      get{
        			return "Path";
      			}
		    }
           
            public IColumn LoweredPath{
                get{
                    return this.GetColumn("LoweredPath");
                }
            }
            				
   			public static string LoweredPathColumn{
			      get{
        			return "LoweredPath";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Plugins
        /// Primary Key: Id
        /// </summary>

        public class PluginsTable: DatabaseTable {
            
            public PluginsTable(IDataProvider provider):base("Plugins",provider){
                ClassName = "Plugin";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("UID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("URI", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });

                Columns.Add(new DatabaseColumn("ParentId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("EntityVersionId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn UID{
                get{
                    return this.GetColumn("UID");
                }
            }
            				
   			public static string UIDColumn{
			      get{
        			return "UID";
      			}
		    }
           
            public IColumn URI{
                get{
                    return this.GetColumn("URI");
                }
            }
            				
   			public static string URIColumn{
			      get{
        			return "URI";
      			}
		    }
           
            public IColumn Title{
                get{
                    return this.GetColumn("Title");
                }
            }
            				
   			public static string TitleColumn{
			      get{
        			return "Title";
      			}
		    }
           
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
            				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
           
            public IColumn ParentId{
                get{
                    return this.GetColumn("ParentId");
                }
            }
            				
   			public static string ParentIdColumn{
			      get{
        			return "ParentId";
      			}
		    }
           
            public IColumn EntityVersionId{
                get{
                    return this.GetColumn("EntityVersionId");
                }
            }
            				
   			public static string EntityVersionIdColumn{
			      get{
        			return "EntityVersionId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_PersonalizationAllUsers
        /// Primary Key: PathId
        /// </summary>

        public class aspnet_PersonalizationAllUsersTable: DatabaseTable {
            
            public aspnet_PersonalizationAllUsersTable(IDataProvider provider):base("aspnet_PersonalizationAllUsers",provider){
                ClassName = "aspnet_PersonalizationAllUser";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("PathId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("PageSettings", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Binary,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 2147483647
                });

                Columns.Add(new DatabaseColumn("LastUpdatedDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn PathId{
                get{
                    return this.GetColumn("PathId");
                }
            }
            				
   			public static string PathIdColumn{
			      get{
        			return "PathId";
      			}
		    }
           
            public IColumn PageSettings{
                get{
                    return this.GetColumn("PageSettings");
                }
            }
            				
   			public static string PageSettingsColumn{
			      get{
        			return "PageSettings";
      			}
		    }
           
            public IColumn LastUpdatedDate{
                get{
                    return this.GetColumn("LastUpdatedDate");
                }
            }
            				
   			public static string LastUpdatedDateColumn{
			      get{
        			return "LastUpdatedDate";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Plugins_In_Pages
        /// Primary Key: Id
        /// </summary>

        public class Plugins_In_PagesTable: DatabaseTable {
            
            public Plugins_In_PagesTable(IDataProvider provider):base("Plugins_In_Pages",provider){
                ClassName = "Plugins_In_Page";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("NodeId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ParentId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("RootPageId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("EntityVersionId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn NodeId{
                get{
                    return this.GetColumn("NodeId");
                }
            }
            				
   			public static string NodeIdColumn{
			      get{
        			return "NodeId";
      			}
		    }
           
            public IColumn ParentId{
                get{
                    return this.GetColumn("ParentId");
                }
            }
            				
   			public static string ParentIdColumn{
			      get{
        			return "ParentId";
      			}
		    }
           
            public IColumn RootPageId{
                get{
                    return this.GetColumn("RootPageId");
                }
            }
            				
   			public static string RootPageIdColumn{
			      get{
        			return "RootPageId";
      			}
		    }
           
            public IColumn EntityVersionId{
                get{
                    return this.GetColumn("EntityVersionId");
                }
            }
            				
   			public static string EntityVersionIdColumn{
			      get{
        			return "EntityVersionId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_PersonalizationPerUser
        /// Primary Key: Id
        /// </summary>

        public class aspnet_PersonalizationPerUserTable: DatabaseTable {
            
            public aspnet_PersonalizationPerUserTable(IDataProvider provider):base("aspnet_PersonalizationPerUser",provider){
                ClassName = "aspnet_PersonalizationPerUser";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("PathId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("PageSettings", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Binary,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 2147483647
                });

                Columns.Add(new DatabaseColumn("LastUpdatedDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn PathId{
                get{
                    return this.GetColumn("PathId");
                }
            }
            				
   			public static string PathIdColumn{
			      get{
        			return "PathId";
      			}
		    }
           
            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           
            public IColumn PageSettings{
                get{
                    return this.GetColumn("PageSettings");
                }
            }
            				
   			public static string PageSettingsColumn{
			      get{
        			return "PageSettings";
      			}
		    }
           
            public IColumn LastUpdatedDate{
                get{
                    return this.GetColumn("LastUpdatedDate");
                }
            }
            				
   			public static string LastUpdatedDateColumn{
			      get{
        			return "LastUpdatedDate";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: HtmlContents
        /// Primary Key: Id
        /// </summary>

        public class HtmlContentsTable: DatabaseTable {
            
            public HtmlContentsTable(IDataProvider provider):base("HtmlContents",provider){
                ClassName = "HtmlContent";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Data", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Xml,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = -1
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn Data{
                get{
                    return this.GetColumn("Data");
                }
            }
            				
   			public static string DataColumn{
			      get{
        			return "Data";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_WebEvent_Events
        /// Primary Key: EventId
        /// </summary>

        public class aspnet_WebEvent_EventsTable: DatabaseTable {
            
            public aspnet_WebEvent_EventsTable(IDataProvider provider):base("aspnet_WebEvent_Events",provider){
                ClassName = "aspnet_WebEvent_Event";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("EventId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.AnsiStringFixedLength,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 32
                });

                Columns.Add(new DatabaseColumn("EventTimeUtc", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("EventTime", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("EventType", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("EventSequence", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Decimal,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("EventOccurrence", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Decimal,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("EventCode", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("EventDetailCode", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Message", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1024
                });

                Columns.Add(new DatabaseColumn("ApplicationPath", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("ApplicationVirtualPath", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("MachineName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("RequestUrl", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1024
                });

                Columns.Add(new DatabaseColumn("ExceptionType", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("Details", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1073741823
                });
                    
                
                
            }
            
            public IColumn EventId{
                get{
                    return this.GetColumn("EventId");
                }
            }
            				
   			public static string EventIdColumn{
			      get{
        			return "EventId";
      			}
		    }
           
            public IColumn EventTimeUtc{
                get{
                    return this.GetColumn("EventTimeUtc");
                }
            }
            				
   			public static string EventTimeUtcColumn{
			      get{
        			return "EventTimeUtc";
      			}
		    }
           
            public IColumn EventTime{
                get{
                    return this.GetColumn("EventTime");
                }
            }
            				
   			public static string EventTimeColumn{
			      get{
        			return "EventTime";
      			}
		    }
           
            public IColumn EventType{
                get{
                    return this.GetColumn("EventType");
                }
            }
            				
   			public static string EventTypeColumn{
			      get{
        			return "EventType";
      			}
		    }
           
            public IColumn EventSequence{
                get{
                    return this.GetColumn("EventSequence");
                }
            }
            				
   			public static string EventSequenceColumn{
			      get{
        			return "EventSequence";
      			}
		    }
           
            public IColumn EventOccurrence{
                get{
                    return this.GetColumn("EventOccurrence");
                }
            }
            				
   			public static string EventOccurrenceColumn{
			      get{
        			return "EventOccurrence";
      			}
		    }
           
            public IColumn EventCode{
                get{
                    return this.GetColumn("EventCode");
                }
            }
            				
   			public static string EventCodeColumn{
			      get{
        			return "EventCode";
      			}
		    }
           
            public IColumn EventDetailCode{
                get{
                    return this.GetColumn("EventDetailCode");
                }
            }
            				
   			public static string EventDetailCodeColumn{
			      get{
        			return "EventDetailCode";
      			}
		    }
           
            public IColumn Message{
                get{
                    return this.GetColumn("Message");
                }
            }
            				
   			public static string MessageColumn{
			      get{
        			return "Message";
      			}
		    }
           
            public IColumn ApplicationPath{
                get{
                    return this.GetColumn("ApplicationPath");
                }
            }
            				
   			public static string ApplicationPathColumn{
			      get{
        			return "ApplicationPath";
      			}
		    }
           
            public IColumn ApplicationVirtualPath{
                get{
                    return this.GetColumn("ApplicationVirtualPath");
                }
            }
            				
   			public static string ApplicationVirtualPathColumn{
			      get{
        			return "ApplicationVirtualPath";
      			}
		    }
           
            public IColumn MachineName{
                get{
                    return this.GetColumn("MachineName");
                }
            }
            				
   			public static string MachineNameColumn{
			      get{
        			return "MachineName";
      			}
		    }
           
            public IColumn RequestUrl{
                get{
                    return this.GetColumn("RequestUrl");
                }
            }
            				
   			public static string RequestUrlColumn{
			      get{
        			return "RequestUrl";
      			}
		    }
           
            public IColumn ExceptionType{
                get{
                    return this.GetColumn("ExceptionType");
                }
            }
            				
   			public static string ExceptionTypeColumn{
			      get{
        			return "ExceptionType";
      			}
		    }
           
            public IColumn Details{
                get{
                    return this.GetColumn("Details");
                }
            }
            				
   			public static string DetailsColumn{
			      get{
        			return "Details";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: UIResources
        /// Primary Key: Id
        /// </summary>

        public class UIResourcesTable: DatabaseTable {
            
            public UIResourcesTable(IDataProvider provider):base("UIResources",provider){
                ClassName = "UIResource";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CodeName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Value", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 150
                });

                Columns.Add(new DatabaseColumn("ModuleId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn CodeName{
                get{
                    return this.GetColumn("CodeName");
                }
            }
            				
   			public static string CodeNameColumn{
			      get{
        			return "CodeName";
      			}
		    }
           
            public IColumn Value{
                get{
                    return this.GetColumn("Value");
                }
            }
            				
   			public static string ValueColumn{
			      get{
        			return "Value";
      			}
		    }
           
            public IColumn ModuleId{
                get{
                    return this.GetColumn("ModuleId");
                }
            }
            				
   			public static string ModuleIdColumn{
			      get{
        			return "ModuleId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: MenuData
        /// Primary Key: Id
        /// </summary>

        public class MenuDataTable: DatabaseTable {
            
            public MenuDataTable(IDataProvider provider):base("MenuData",provider){
                ClassName = "MenuDatum";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("URI", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 250
                });

                Columns.Add(new DatabaseColumn("URL", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 250
                });

                Columns.Add(new DatabaseColumn("MenuId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn Title{
                get{
                    return this.GetColumn("Title");
                }
            }
            				
   			public static string TitleColumn{
			      get{
        			return "Title";
      			}
		    }
           
            public IColumn URI{
                get{
                    return this.GetColumn("URI");
                }
            }
            				
   			public static string URIColumn{
			      get{
        			return "URI";
      			}
		    }
           
            public IColumn URL{
                get{
                    return this.GetColumn("URL");
                }
            }
            				
   			public static string URLColumn{
			      get{
        			return "URL";
      			}
		    }
           
            public IColumn MenuId{
                get{
                    return this.GetColumn("MenuId");
                }
            }
            				
   			public static string MenuIdColumn{
			      get{
        			return "MenuId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Clients
        /// Primary Key: EntityVersionId
        /// </summary>

        public class ClientsTable: DatabaseTable {
            
            public ClientsTable(IDataProvider provider):base("Clients",provider){
                ClassName = "Client";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("FirstName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("FamilyName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("IDNumber", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int64,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Sex", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiStringFixedLength,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1
                });

                Columns.Add(new DatabaseColumn("BirthDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("MarrageState", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("NumberOfChildren", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Education", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 150
                });

                Columns.Add(new DatabaseColumn("MothersFamilyName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("EntityVersionId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn FirstName{
                get{
                    return this.GetColumn("FirstName");
                }
            }
            				
   			public static string FirstNameColumn{
			      get{
        			return "FirstName";
      			}
		    }
           
            public IColumn FamilyName{
                get{
                    return this.GetColumn("FamilyName");
                }
            }
            				
   			public static string FamilyNameColumn{
			      get{
        			return "FamilyName";
      			}
		    }
           
            public IColumn IDNumber{
                get{
                    return this.GetColumn("IDNumber");
                }
            }
            				
   			public static string IDNumberColumn{
			      get{
        			return "IDNumber";
      			}
		    }
           
            public IColumn Sex{
                get{
                    return this.GetColumn("Sex");
                }
            }
            				
   			public static string SexColumn{
			      get{
        			return "Sex";
      			}
		    }
           
            public IColumn BirthDate{
                get{
                    return this.GetColumn("BirthDate");
                }
            }
            				
   			public static string BirthDateColumn{
			      get{
        			return "BirthDate";
      			}
		    }
           
            public IColumn MarrageState{
                get{
                    return this.GetColumn("MarrageState");
                }
            }
            				
   			public static string MarrageStateColumn{
			      get{
        			return "MarrageState";
      			}
		    }
           
            public IColumn NumberOfChildren{
                get{
                    return this.GetColumn("NumberOfChildren");
                }
            }
            				
   			public static string NumberOfChildrenColumn{
			      get{
        			return "NumberOfChildren";
      			}
		    }
           
            public IColumn Education{
                get{
                    return this.GetColumn("Education");
                }
            }
            				
   			public static string EducationColumn{
			      get{
        			return "Education";
      			}
		    }
           
            public IColumn MothersFamilyName{
                get{
                    return this.GetColumn("MothersFamilyName");
                }
            }
            				
   			public static string MothersFamilyNameColumn{
			      get{
        			return "MothersFamilyName";
      			}
		    }
           
            public IColumn EntityVersionId{
                get{
                    return this.GetColumn("EntityVersionId");
                }
            }
            				
   			public static string EntityVersionIdColumn{
			      get{
        			return "EntityVersionId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: ContentVersions
        /// Primary Key: Id
        /// </summary>

        public class ContentVersionsTable: DatabaseTable {
            
            public ContentVersionsTable(IDataProvider provider):base("ContentVersions",provider){
                ClassName = "ContentVersion";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("EntityId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("IsCurrent", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Created", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Modified", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("IsPublished", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn EntityId{
                get{
                    return this.GetColumn("EntityId");
                }
            }
            				
   			public static string EntityIdColumn{
			      get{
        			return "EntityId";
      			}
		    }
           
            public IColumn IsCurrent{
                get{
                    return this.GetColumn("IsCurrent");
                }
            }
            				
   			public static string IsCurrentColumn{
			      get{
        			return "IsCurrent";
      			}
		    }
           
            public IColumn Created{
                get{
                    return this.GetColumn("Created");
                }
            }
            				
   			public static string CreatedColumn{
			      get{
        			return "Created";
      			}
		    }
           
            public IColumn Modified{
                get{
                    return this.GetColumn("Modified");
                }
            }
            				
   			public static string ModifiedColumn{
			      get{
        			return "Modified";
      			}
		    }
           
            public IColumn IsPublished{
                get{
                    return this.GetColumn("IsPublished");
                }
            }
            				
   			public static string IsPublishedColumn{
			      get{
        			return "IsPublished";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_UserProfile
        /// Primary Key: UserId
        /// </summary>

        public class aspnet_UserProfileTable: DatabaseTable {
            
            public aspnet_UserProfileTable(IDataProvider provider):base("aspnet_UserProfile",provider){
                ClassName = "aspnet_UserProfile";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("FirstName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("FamilyName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("EntityId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           
            public IColumn FirstName{
                get{
                    return this.GetColumn("FirstName");
                }
            }
            				
   			public static string FirstNameColumn{
			      get{
        			return "FirstName";
      			}
		    }
           
            public IColumn FamilyName{
                get{
                    return this.GetColumn("FamilyName");
                }
            }
            				
   			public static string FamilyNameColumn{
			      get{
        			return "FamilyName";
      			}
		    }
           
            public IColumn EntityId{
                get{
                    return this.GetColumn("EntityId");
                }
            }
            				
   			public static string EntityIdColumn{
			      get{
        			return "EntityId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Media
        /// Primary Key: Id
        /// </summary>

        public class MediaTable: DatabaseTable {
            
            public MediaTable(IDataProvider provider):base("Media",provider){
                ClassName = "Medium";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("URI", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn Title{
                get{
                    return this.GetColumn("Title");
                }
            }
            				
   			public static string TitleColumn{
			      get{
        			return "Title";
      			}
		    }
           
            public IColumn URI{
                get{
                    return this.GetColumn("URI");
                }
            }
            				
   			public static string URIColumn{
			      get{
        			return "URI";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Meny_To_Menies
        /// Primary Key: Id
        /// </summary>

        public class Meny_To_MeniesTable: DatabaseTable {
            
            public Meny_To_MeniesTable(IDataProvider provider):base("Meny_To_Menies",provider){
                ClassName = "Meny_To_Meny";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("RelatedEntityId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn RelatedEntityId{
                get{
                    return this.GetColumn("RelatedEntityId");
                }
            }
            				
   			public static string RelatedEntityIdColumn{
			      get{
        			return "RelatedEntityId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Menus
        /// Primary Key: Id
        /// </summary>

        public class MenusTable: DatabaseTable {
            
            public MenusTable(IDataProvider provider):base("Menus",provider){
                ClassName = "Menu";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CodeName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn CodeName{
                get{
                    return this.GetColumn("CodeName");
                }
            }
            				
   			public static string CodeNameColumn{
			      get{
        			return "CodeName";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Domains
        /// Primary Key: Id
        /// </summary>

        public class DomainsTable: DatabaseTable {
            
            public DomainsTable(IDataProvider provider):base("Domains",provider){
                ClassName = "Domain";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ApplicationId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LanguageId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Master", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn ApplicationId{
                get{
                    return this.GetColumn("ApplicationId");
                }
            }
            				
   			public static string ApplicationIdColumn{
			      get{
        			return "ApplicationId";
      			}
		    }
           
            public IColumn LanguageId{
                get{
                    return this.GetColumn("LanguageId");
                }
            }
            				
   			public static string LanguageIdColumn{
			      get{
        			return "LanguageId";
      			}
		    }
           
            public IColumn Master{
                get{
                    return this.GetColumn("Master");
                }
            }
            				
   			public static string MasterColumn{
			      get{
        			return "Master";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_Users
        /// Primary Key: UserId
        /// </summary>

        public class aspnet_UsersTable: DatabaseTable {
            
            public aspnet_UsersTable(IDataProvider provider):base("aspnet_Users",provider){
                ClassName = "aspnet_User";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("ApplicationId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("UserName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("LoweredUserName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("MobileAlias", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 16
                });

                Columns.Add(new DatabaseColumn("IsAnonymous", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastActivityDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ExparationDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn ApplicationId{
                get{
                    return this.GetColumn("ApplicationId");
                }
            }
            				
   			public static string ApplicationIdColumn{
			      get{
        			return "ApplicationId";
      			}
		    }
           
            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           
            public IColumn UserName{
                get{
                    return this.GetColumn("UserName");
                }
            }
            				
   			public static string UserNameColumn{
			      get{
        			return "UserName";
      			}
		    }
           
            public IColumn LoweredUserName{
                get{
                    return this.GetColumn("LoweredUserName");
                }
            }
            				
   			public static string LoweredUserNameColumn{
			      get{
        			return "LoweredUserName";
      			}
		    }
           
            public IColumn MobileAlias{
                get{
                    return this.GetColumn("MobileAlias");
                }
            }
            				
   			public static string MobileAliasColumn{
			      get{
        			return "MobileAlias";
      			}
		    }
           
            public IColumn IsAnonymous{
                get{
                    return this.GetColumn("IsAnonymous");
                }
            }
            				
   			public static string IsAnonymousColumn{
			      get{
        			return "IsAnonymous";
      			}
		    }
           
            public IColumn LastActivityDate{
                get{
                    return this.GetColumn("LastActivityDate");
                }
            }
            				
   			public static string LastActivityDateColumn{
			      get{
        			return "LastActivityDate";
      			}
		    }
           
            public IColumn ExparationDate{
                get{
                    return this.GetColumn("ExparationDate");
                }
            }
            				
   			public static string ExparationDateColumn{
			      get{
        			return "ExparationDate";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_Applications
        /// Primary Key: Id
        /// </summary>

        public class aspnet_ApplicationsTable: DatabaseTable {
            
            public aspnet_ApplicationsTable(IDataProvider provider):base("aspnet_Applications",provider){
                ClassName = "aspnet_Application";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ApplicationName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("LoweredApplicationName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("DevName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn ApplicationName{
                get{
                    return this.GetColumn("ApplicationName");
                }
            }
            				
   			public static string ApplicationNameColumn{
			      get{
        			return "ApplicationName";
      			}
		    }
           
            public IColumn LoweredApplicationName{
                get{
                    return this.GetColumn("LoweredApplicationName");
                }
            }
            				
   			public static string LoweredApplicationNameColumn{
			      get{
        			return "LoweredApplicationName";
      			}
		    }
           
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
            				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
           
            public IColumn DevName{
                get{
                    return this.GetColumn("DevName");
                }
            }
            				
   			public static string DevNameColumn{
			      get{
        			return "DevName";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: ContentEntities
        /// Primary Key: Id
        /// </summary>

        public class ContentEntitiesTable: DatabaseTable {
            
            public ContentEntitiesTable(IDataProvider provider):base("ContentEntities",provider){
                ClassName = "ContentEntity";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Type", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("IsBlocked", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ParentId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("MasterSyncId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("DomainsId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn Type{
                get{
                    return this.GetColumn("Type");
                }
            }
            				
   			public static string TypeColumn{
			      get{
        			return "Type";
      			}
		    }
           
            public IColumn IsBlocked{
                get{
                    return this.GetColumn("IsBlocked");
                }
            }
            				
   			public static string IsBlockedColumn{
			      get{
        			return "IsBlocked";
      			}
		    }
           
            public IColumn ParentId{
                get{
                    return this.GetColumn("ParentId");
                }
            }
            				
   			public static string ParentIdColumn{
			      get{
        			return "ParentId";
      			}
		    }
           
            public IColumn MasterSyncId{
                get{
                    return this.GetColumn("MasterSyncId");
                }
            }
            				
   			public static string MasterSyncIdColumn{
			      get{
        			return "MasterSyncId";
      			}
		    }
           
            public IColumn DomainsId{
                get{
                    return this.GetColumn("DomainsId");
                }
            }
            				
   			public static string DomainsIdColumn{
			      get{
        			return "DomainsId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_SchemaVersions
        /// Primary Key: CompatibleSchemaVersion
        /// </summary>

        public class aspnet_SchemaVersionsTable: DatabaseTable {
            
            public aspnet_SchemaVersionsTable(IDataProvider provider):base("aspnet_SchemaVersions",provider){
                ClassName = "aspnet_SchemaVersion";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Feature", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("CompatibleSchemaVersion", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("IsCurrentVersion", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Feature{
                get{
                    return this.GetColumn("Feature");
                }
            }
            				
   			public static string FeatureColumn{
			      get{
        			return "Feature";
      			}
		    }
           
            public IColumn CompatibleSchemaVersion{
                get{
                    return this.GetColumn("CompatibleSchemaVersion");
                }
            }
            				
   			public static string CompatibleSchemaVersionColumn{
			      get{
        			return "CompatibleSchemaVersion";
      			}
		    }
           
            public IColumn IsCurrentVersion{
                get{
                    return this.GetColumn("IsCurrentVersion");
                }
            }
            				
   			public static string IsCurrentVersionColumn{
			      get{
        			return "IsCurrentVersion";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: WebPages
        /// Primary Key: Id
        /// </summary>

        public class WebPagesTable: DatabaseTable {
            
            public WebPagesTable(IDataProvider provider):base("WebPages",provider){
                ClassName = "WebPage";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("ParentId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Name", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });

                Columns.Add(new DatabaseColumn("URI", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 250
                });

                Columns.Add(new DatabaseColumn("RedirectURI", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 250
                });

                Columns.Add(new DatabaseColumn("MasterSyncId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("DomainsId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn ParentId{
                get{
                    return this.GetColumn("ParentId");
                }
            }
            				
   			public static string ParentIdColumn{
			      get{
        			return "ParentId";
      			}
		    }
           
            public IColumn Name{
                get{
                    return this.GetColumn("Name");
                }
            }
            				
   			public static string NameColumn{
			      get{
        			return "Name";
      			}
		    }
           
            public IColumn URI{
                get{
                    return this.GetColumn("URI");
                }
            }
            				
   			public static string URIColumn{
			      get{
        			return "URI";
      			}
		    }
           
            public IColumn RedirectURI{
                get{
                    return this.GetColumn("RedirectURI");
                }
            }
            				
   			public static string RedirectURIColumn{
			      get{
        			return "RedirectURI";
      			}
		    }
           
            public IColumn MasterSyncId{
                get{
                    return this.GetColumn("MasterSyncId");
                }
            }
            				
   			public static string MasterSyncIdColumn{
			      get{
        			return "MasterSyncId";
      			}
		    }
           
            public IColumn DomainsId{
                get{
                    return this.GetColumn("DomainsId");
                }
            }
            				
   			public static string DomainsIdColumn{
			      get{
        			return "DomainsId";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: CoreEntities
        /// Primary Key: Id
        /// </summary>

        public class CoreEntitiesTable: DatabaseTable {
            
            public CoreEntitiesTable(IDataProvider provider):base("CoreEntities",provider){
                ClassName = "CoreEntity";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Type", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn Type{
                get{
                    return this.GetColumn("Type");
                }
            }
            				
   			public static string TypeColumn{
			      get{
        			return "Type";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Categories
        /// Primary Key: Id
        /// </summary>

        public class CategoriesTable: DatabaseTable {
            
            public CategoriesTable(IDataProvider provider):base("Categories",provider){
                ClassName = "Category";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn Title{
                get{
                    return this.GetColumn("Title");
                }
            }
            				
   			public static string TitleColumn{
			      get{
        			return "Title";
      			}
		    }
           
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
            				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_Membership
        /// Primary Key: UserId
        /// </summary>

        public class aspnet_MembershipTable: DatabaseTable {
            
            public aspnet_MembershipTable(IDataProvider provider):base("aspnet_Membership",provider){
                ClassName = "aspnet_Membership";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("ApplicationId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Password", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("PasswordFormat", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("PasswordSalt", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("MobilePIN", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 16
                });

                Columns.Add(new DatabaseColumn("Email", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("LoweredEmail", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("PasswordQuestion", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("PasswordAnswer", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 128
                });

                Columns.Add(new DatabaseColumn("IsApproved", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("IsLockedOut", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CreateDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastLoginDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastPasswordChangedDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("LastLockoutDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("FailedPasswordAttemptCount", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("FailedPasswordAttemptWindowStart", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("FailedPasswordAnswerAttemptCount", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("FailedPasswordAnswerAttemptWindowStart", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Comment", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1073741823
                });

                Columns.Add(new DatabaseColumn("Expire", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn ApplicationId{
                get{
                    return this.GetColumn("ApplicationId");
                }
            }
            				
   			public static string ApplicationIdColumn{
			      get{
        			return "ApplicationId";
      			}
		    }
           
            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           
            public IColumn Password{
                get{
                    return this.GetColumn("Password");
                }
            }
            				
   			public static string PasswordColumn{
			      get{
        			return "Password";
      			}
		    }
           
            public IColumn PasswordFormat{
                get{
                    return this.GetColumn("PasswordFormat");
                }
            }
            				
   			public static string PasswordFormatColumn{
			      get{
        			return "PasswordFormat";
      			}
		    }
           
            public IColumn PasswordSalt{
                get{
                    return this.GetColumn("PasswordSalt");
                }
            }
            				
   			public static string PasswordSaltColumn{
			      get{
        			return "PasswordSalt";
      			}
		    }
           
            public IColumn MobilePIN{
                get{
                    return this.GetColumn("MobilePIN");
                }
            }
            				
   			public static string MobilePINColumn{
			      get{
        			return "MobilePIN";
      			}
		    }
           
            public IColumn Email{
                get{
                    return this.GetColumn("Email");
                }
            }
            				
   			public static string EmailColumn{
			      get{
        			return "Email";
      			}
		    }
           
            public IColumn LoweredEmail{
                get{
                    return this.GetColumn("LoweredEmail");
                }
            }
            				
   			public static string LoweredEmailColumn{
			      get{
        			return "LoweredEmail";
      			}
		    }
           
            public IColumn PasswordQuestion{
                get{
                    return this.GetColumn("PasswordQuestion");
                }
            }
            				
   			public static string PasswordQuestionColumn{
			      get{
        			return "PasswordQuestion";
      			}
		    }
           
            public IColumn PasswordAnswer{
                get{
                    return this.GetColumn("PasswordAnswer");
                }
            }
            				
   			public static string PasswordAnswerColumn{
			      get{
        			return "PasswordAnswer";
      			}
		    }
           
            public IColumn IsApproved{
                get{
                    return this.GetColumn("IsApproved");
                }
            }
            				
   			public static string IsApprovedColumn{
			      get{
        			return "IsApproved";
      			}
		    }
           
            public IColumn IsLockedOut{
                get{
                    return this.GetColumn("IsLockedOut");
                }
            }
            				
   			public static string IsLockedOutColumn{
			      get{
        			return "IsLockedOut";
      			}
		    }
           
            public IColumn CreateDate{
                get{
                    return this.GetColumn("CreateDate");
                }
            }
            				
   			public static string CreateDateColumn{
			      get{
        			return "CreateDate";
      			}
		    }
           
            public IColumn LastLoginDate{
                get{
                    return this.GetColumn("LastLoginDate");
                }
            }
            				
   			public static string LastLoginDateColumn{
			      get{
        			return "LastLoginDate";
      			}
		    }
           
            public IColumn LastPasswordChangedDate{
                get{
                    return this.GetColumn("LastPasswordChangedDate");
                }
            }
            				
   			public static string LastPasswordChangedDateColumn{
			      get{
        			return "LastPasswordChangedDate";
      			}
		    }
           
            public IColumn LastLockoutDate{
                get{
                    return this.GetColumn("LastLockoutDate");
                }
            }
            				
   			public static string LastLockoutDateColumn{
			      get{
        			return "LastLockoutDate";
      			}
		    }
           
            public IColumn FailedPasswordAttemptCount{
                get{
                    return this.GetColumn("FailedPasswordAttemptCount");
                }
            }
            				
   			public static string FailedPasswordAttemptCountColumn{
			      get{
        			return "FailedPasswordAttemptCount";
      			}
		    }
           
            public IColumn FailedPasswordAttemptWindowStart{
                get{
                    return this.GetColumn("FailedPasswordAttemptWindowStart");
                }
            }
            				
   			public static string FailedPasswordAttemptWindowStartColumn{
			      get{
        			return "FailedPasswordAttemptWindowStart";
      			}
		    }
           
            public IColumn FailedPasswordAnswerAttemptCount{
                get{
                    return this.GetColumn("FailedPasswordAnswerAttemptCount");
                }
            }
            				
   			public static string FailedPasswordAnswerAttemptCountColumn{
			      get{
        			return "FailedPasswordAnswerAttemptCount";
      			}
		    }
           
            public IColumn FailedPasswordAnswerAttemptWindowStart{
                get{
                    return this.GetColumn("FailedPasswordAnswerAttemptWindowStart");
                }
            }
            				
   			public static string FailedPasswordAnswerAttemptWindowStartColumn{
			      get{
        			return "FailedPasswordAnswerAttemptWindowStart";
      			}
		    }
           
            public IColumn Comment{
                get{
                    return this.GetColumn("Comment");
                }
            }
            				
   			public static string CommentColumn{
			      get{
        			return "Comment";
      			}
		    }
           
            public IColumn Expire{
                get{
                    return this.GetColumn("Expire");
                }
            }
            				
   			public static string ExpireColumn{
			      get{
        			return "Expire";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Cities
        /// Primary Key: Id
        /// </summary>

        public class CitiesTable: DatabaseTable {
            
            public CitiesTable(IDataProvider provider):base("Cities",provider){
                ClassName = "City";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("Title", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn Title{
                get{
                    return this.GetColumn("Title");
                }
            }
            				
   			public static string TitleColumn{
			      get{
        			return "Title";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: Languages
        /// Primary Key: Id
        /// </summary>

        public class LanguagesTable: DatabaseTable {
            
            public LanguagesTable(IDataProvider provider):base("Languages",provider){
                ClassName = "Language";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("CodeName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 2
                });

                Columns.Add(new DatabaseColumn("EnglishName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });

                Columns.Add(new DatabaseColumn("NativeName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            
            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           
            public IColumn CodeName{
                get{
                    return this.GetColumn("CodeName");
                }
            }
            				
   			public static string CodeNameColumn{
			      get{
        			return "CodeName";
      			}
		    }
           
            public IColumn EnglishName{
                get{
                    return this.GetColumn("EnglishName");
                }
            }
            				
   			public static string EnglishNameColumn{
			      get{
        			return "EnglishName";
      			}
		    }
           
            public IColumn NativeName{
                get{
                    return this.GetColumn("NativeName");
                }
            }
            				
   			public static string NativeNameColumn{
			      get{
        			return "NativeName";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_Profile
        /// Primary Key: UserId
        /// </summary>

        public class aspnet_ProfileTable: DatabaseTable {
            
            public aspnet_ProfileTable(IDataProvider provider):base("aspnet_Profile",provider){
                ClassName = "aspnet_Profile";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("PropertyNames", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1073741823
                });

                Columns.Add(new DatabaseColumn("PropertyValuesString", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1073741823
                });

                Columns.Add(new DatabaseColumn("PropertyValuesBinary", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Binary,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 2147483647
                });

                Columns.Add(new DatabaseColumn("LastUpdatedDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           
            public IColumn PropertyNames{
                get{
                    return this.GetColumn("PropertyNames");
                }
            }
            				
   			public static string PropertyNamesColumn{
			      get{
        			return "PropertyNames";
      			}
		    }
           
            public IColumn PropertyValuesString{
                get{
                    return this.GetColumn("PropertyValuesString");
                }
            }
            				
   			public static string PropertyValuesStringColumn{
			      get{
        			return "PropertyValuesString";
      			}
		    }
           
            public IColumn PropertyValuesBinary{
                get{
                    return this.GetColumn("PropertyValuesBinary");
                }
            }
            				
   			public static string PropertyValuesBinaryColumn{
			      get{
        			return "PropertyValuesBinary";
      			}
		    }
           
            public IColumn LastUpdatedDate{
                get{
                    return this.GetColumn("LastUpdatedDate");
                }
            }
            				
   			public static string LastUpdatedDateColumn{
			      get{
        			return "LastUpdatedDate";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_Roles
        /// Primary Key: RoleId
        /// </summary>

        public class aspnet_RolesTable: DatabaseTable {
            
            public aspnet_RolesTable(IDataProvider provider):base("aspnet_Roles",provider){
                ClassName = "aspnet_Role";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("ApplicationId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("RoleId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("RoleName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("LoweredRoleName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });

                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });
                    
                
                
            }
            
            public IColumn ApplicationId{
                get{
                    return this.GetColumn("ApplicationId");
                }
            }
            				
   			public static string ApplicationIdColumn{
			      get{
        			return "ApplicationId";
      			}
		    }
           
            public IColumn RoleId{
                get{
                    return this.GetColumn("RoleId");
                }
            }
            				
   			public static string RoleIdColumn{
			      get{
        			return "RoleId";
      			}
		    }
           
            public IColumn RoleName{
                get{
                    return this.GetColumn("RoleName");
                }
            }
            				
   			public static string RoleNameColumn{
			      get{
        			return "RoleName";
      			}
		    }
           
            public IColumn LoweredRoleName{
                get{
                    return this.GetColumn("LoweredRoleName");
                }
            }
            				
   			public static string LoweredRoleNameColumn{
			      get{
        			return "LoweredRoleName";
      			}
		    }
           
            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
            				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
           
                    
        }
        
        /// <summary>
        /// Table: aspnet_UsersInRoles
        /// Primary Key: RoleId
        /// </summary>

        public class aspnet_UsersInRolesTable: DatabaseTable {
            
            public aspnet_UsersInRolesTable(IDataProvider provider):base("aspnet_UsersInRoles",provider){
                ClassName = "aspnet_UsersInRole";
                SchemaName = "dbo";
                

                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });

                Columns.Add(new DatabaseColumn("RoleId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Guid,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = true,
	                MaxLength = 0
                });
                    
                
                
            }
            
            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           
            public IColumn RoleId{
                get{
                    return this.GetColumn("RoleId");
                }
            }
            				
   			public static string RoleIdColumn{
			      get{
        			return "RoleId";
      			}
		    }
           
                    
        }
        
}